package com.dt76.smallloanbackenduser.remote.xm;


import com.dt76.smallloanbackenduser.hystrix.xm.FcCheckStateHystrix;
import com.dt76.smallloanbackenduser.pojo.xm.FcCheckState;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = FcCheckStateHystrix.class)
public interface FcCheckStateRemote {

    @RequestMapping("/xm/CheckState/qryAllCheckStateByID")
    List<FcCheckState> qryAllCheckStateByID(@RequestParam("id") int id);

    @PostMapping(value = "/xm/CheckState/addCheckState",consumes = "application/json")
    int addCheckState(@RequestBody FcCheckState checkState);
}
